import SignUpOrderIndex from './signUpOrderIndex'
import SignUpOrderList from './signUpOrderList'
const signUpOrderRouter = {

  path: 'landlord/rentManage/signUpOrder',
  getChildRoutes(location, cb) {
    require.ensure([], (require) => {
      cb(null, [
        {
          path: 'list',
          getComponents(nextState, cb) {
            require.ensure([], function (require) {
              cb(null, require('./signUpOrderList'))
            })
          },

        },
        {
          path: 'add',
          getComponents(nextState, cb) {
            require.ensure([], function (require) {
              cb(null, require('./signUpOrderAdd'))
            })
          }
        },
        {
          path: 'update',
          getComponents(nextState, cb) {
            require.ensure([], function (require) {
              cb(null, require('./signUpOrderModify'))
            })
          }
        },
        {
          path: 'details',
          getComponents(nextState, cb) {
            require.ensure([], function (require) {
              cb(null, require('./signUpOrderModify'))
            })
          }
        }
      ])
    })
  },

  indexRoute: {
    getComponents(location, cb) {
      require.ensure([], function (require) {
        cb(null, SignUpOrderList)
      })
      return cb()
    }
  },

  getComponents(nextState, cb) {
    require.ensure([], (require) => {
      cb(null, SignUpOrderIndex)
    })
  }
}


export default signUpOrderRouter;

